package com.osgix.common.orm.ibatis;

import java.io.Serializable;
import java.util.List;

public interface EntityDao<T, PK extends Serializable> {

	public T getById(PK id);

	public void deleteById(PK id);

	public void save(T entity);

	public void update(T entity);

	public void saveOrUpdate(T entity);

	public boolean isUnique(T entity, String uniquePropertyNames);

	public void flush();

	public List<T> findAll();

}
